#include<bits/stdc++.h>
using namespace std;
// 暴力枚举
int main() {
    int n;
    cin >> n;
    int first = 0, len = 0;
    for (int i = 2; i <= sqrt(n); i++) {
        int j;
        int temp = 1;
        for (j = i; j <= sqrt(n); j++) {
            temp *= j;
            if (n % temp != 0) break;
        }
        if (j - i > len) {
            len = j - i;
            first = i;
        }
    }   
    if (first == 0) //素数或1
        cout << 1 << endl << n;
    else{
        cout << len << endl << first;
        for(int i = 1; i < len; i++)
            cout << '*' << first + i;
        cout << endl;
    }
    return 0;
}